package com.kb.erp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;

@TableName("peremployee")
@Data
public class HrEntity {
    @TableField(value = "EmpCurrentStateNo")
    private String empCurrentStateNo;
    @TableField(value = "EmpNo")
    private String empNo;
    @TableField(value = "EmpName")
    private String empName;
    //    @TableField(value = "Sex")
//    private String sex;
//
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "LeaveDate")
    private LocalDate leaveDate;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate leaveStartDate;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate leaveEndDate;
    //    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @TableField(value = "ComeDate")
//    private LocalDateTime comeDate;
    @TableField(value = "dtName2")
    private String dtName2;
    @TableField(value = "dtName3")
    private String dtName3;
    @TableField(value = "dtName4")
    private String dtName4;
    @TableField(value = "dtName5")
    private String dtName5;
    @TableField(value = "dtName6")
    private String dtName6;
    @TableField(value = "dtName7")
    private String dtName7;
}
